package com.wei.fallback;

import com.wei.entity.User;
import com.wei.remote.UserControllerRemoteClient;
import org.springframework.stereotype.Component;

@Component
public class UserControllerRemoteFallback implements UserControllerRemoteClient {
    @Override
    public User getOne() {
        User user = new User();
        user.setUsername("feign整合Hystrix实现服务降级");
        user.setPassword("feign整合Hystrix实现服务降级");
        return user;
    }

    @Override
    public String getValue() {
        return "降级了";
    }
}
